﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace LiaisonDonnees
{
    public partial class Fm_diplome : Form
    {
        private Donnees bd;
        public Fm_diplome(Donnees p_bd)
        {
            InitializeComponent();
            bd = p_bd;
            bs.DataSource = bd.ObtDiplomes();
        }
        private void Fm_diplome_FormClosing(object sender, FormClosingEventArgs e)
        {
            bs.EndEdit();
        }
        private void enregistrerToolStripButton_Click(object sender, EventArgs e)
        {
            bs_employes.EndEdit();
            bs.EndEdit();
            bd.Sauver();
        }
    }
}
